package com.zdp.demo;

import com.zdp.demo.remote.UserRemoteService;
import com.zdp.entity.base.R;
import com.zdp.entity.remote.UserVO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequiredArgsConstructor
@RestController
@RequestMapping("/remote")
public class RemoteTestController {

    private final UserRemoteService userRemoteService;

    @GetMapping("/user/list")
    public R<List<UserVO>> list() {
        return userRemoteService.list();
    }
}
